package Test001;

public class Student {
    private String name;
    static int totalStudents=0;

    public Student(String name) {
        this.name=name;
        totalStudents++;
    }

    public static int getTotalStudents() {
        return totalStudents;
    }

    public static void setTotalStudents(int totalStudents) {
        Student.totalStudents = totalStudents;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void show01(){
        System.out.println(totalStudents);
    }
}
